<?php
/**
 * Group table data gateway
 *
 * @category    IPB_CMS
 * @package     Application_Model
 * @subpackage  DbTable
 * @copyright   Copyright (c) 2009 IPB CMS <http://ipb-cms.googlecode.com/>
 * @license     http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License
 * @author      Henrique Moody <henriquemoody@gmail.com>
 */
class Model_DbTable_Group extends App_Model_DbTable_Abstract
{

    /**
     * Name of the database table
     *
     * @var string
     */
    protected $_name = 'group';

    /**
     * Associative array map of declarative referential integrity rules.
     *
     * @var array
     */
    protected $_referenceMap = array(
        'Creator' => array(
            'columns' => array('creatorId'),
            'refTableClass' => 'Model_DbTable_User',
            'refColumns' => array('id')
        ),
        'Updater' => array(
            'columns' => array('updaterId'),
            'refTableClass' => 'Model_DbTable_User',
            'refColumns' => array('id')
        )
    );

}
